package com.woniuxy.cloud.carl.user.common;


import com.woniuxy.result.Messagable;

public enum UserResultCode implements Messagable {

    CODE_ILLEGAL(2000, "非法验证码"),
    NOT_LOGIN(2001,"未登录"),
    USER_NOT_EXIST(2002,"账号不存在"),
    PWD_NOT_MATCH(2003,"密码错误"),
    PARAMETER_ILLEGAL(2004,"参数异常"),
    USER_REGISTERED(2005,"用户已注册"),
    CODE_USE_TO_MUCH(2006,"验证码发送过于频繁"),
    ACCOUNT_CODE_MUCH_5(2007,"验证码发送不超过5次"),
ADDRESS_DOUBLE_DEFAULT(2008,"已经时默认收获地址，无需重复操作"),
    SCORE_NOT_ENOUGHT(2009,"积分不足")
    ;

    private Integer code;
    private String message;

    private UserResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
